package com.ruoyi.hospital.service;

import java.util.List;
import com.ruoyi.hospital.domain.Appointments;

/**
 * 预约信息Service接口
 *
 * @author xiaozhao
 * @date 2025-07-04
 */
public interface AppointmentsService
{
    /**
     * 查询预约信息
     *
     * @param appointmentId 预约信息主键
     * @return 预约信息
     */
    public Appointments selectAppointmentsByAppointmentId(Long appointmentId);

    /**
     * 查询预约信息列表
     *
     * @param appointments 预约信息
     * @return 预约信息集合
     */
    public List<Appointments> selectAppointmentsList(Appointments appointments);

    /**
     * 新增预约信息
     *
     * @param appointments 预约信息
     * @return 结果
     */
    public int insertAppointments(Appointments appointments);

    /**
     * 修改预约信息
     *
     * @param appointments 预约信息
     * @return 结果
     */
    public int updateAppointments(Appointments appointments);

    /**
     * 批量删除预约信息
     *
     * @param appointmentIds 需要删除的预约信息主键集合
     * @return 结果
     */
    public int deleteAppointmentsByAppointmentIds(Long[] appointmentIds);

    /**
     * 删除预约信息信息
     *
     * @param appointmentId 预约信息主键
     * @return 结果
     */
    public int deleteAppointmentsByAppointmentId(Long appointmentId);

    /**
     * 新增预约信息并更新号源数量
     * @param appointments 预约信息
     * @return 结果
     */
    int insertAppointmentsWithQuotaUpdate(Appointments appointments);

    /**
     * 修改预约信息并更新号源数量
     * @param appointments 预约信息
     * @return 结果
     */
    int updateAppointmentsWithQuotaUpdate(Appointments appointments);
}
